<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/


//base
Route::get('/', [\App\Http\Controllers\BaseController::class,'toHome'])->name('base.home');
Route::get('about', [\App\Http\Controllers\BaseController::class,'toAbout'])->name('base.about');
Route::get('help', [\App\Http\Controllers\BaseController::class,'toHelp'])->name('base.help');

//auth
Route::get('loginWeb',[\App\Http\Controllers\AuthController::class,'toLogin'])->name('login');
Route::post('login',[\App\Http\Controllers\AuthController::class,'login'])->name('auth.login');
Route::delete('logout',[\App\Http\Controllers\AuthController::class,'logout'])->name('auth.logout');
Route::get('account/active',[\App\Http\Controllers\AuthController::class,'active'])->name('account.active');

//users
Route::resource('users',\App\Http\Controllers\UsersController::class);



